cmake_minimum_required(VERSION 3.5)
project(migratable_rl)

add_definitions(-std=c++14 -O3)

find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
find_package(PCL REQUIRED)


find_package(catkin REQUIRED COMPONENTS
    roscpp
    rospy
    geometry_msgs
    sensor_msgs
    cv_bridge
    tf
)

add_message_files(
    FILES
    box.msg
    boundingbox.msg
    semantics_lidar.msg
)

add_service_files(
    FILES
    detect.srv
)

generate_messages(
    DEPENDENCIES
    std_msgs
    sensor_msgs
)

include_directories(
    include
    ${catkin_INCLUDE_DIRS}
    ${EIGEN3_INCLUDE_DIR}
    ${OpenCV_INCLUDE_DIRS}
)

catkin_package(
    INCLUDE_DIRS include
    CATKIN_DEPENDS message_runtime
)

add_executable(lidar_projection src/lidar_projection.cpp src/camera_projection.cpp)
target_link_libraries(lidar_projection ${catkin_LIBRARIES} ${OpenCV_LIBS})

